#define _CRT_SECURE_NO_WARNINGS 1
#include"slist.h"

int main()
{
	struct SLNode* plist = NULL;
	SListBackPush(&plist, 2);
	SListBackPush(&plist, 3);
	SListBackPush(&plist, 5);
	SListFrontPush(&plist, 1);
	SListFrontPush(&plist, 0);
	struct SLNode* pos1 = SListFind(&plist, 0);
	
	SListInsert(&plist, 4, pos1);
	int length =  SListLength(plist);
	
	//struct SLNode* pos2 = SListFind(&plist, 1);
	//struct SLNode* pos3 = SListFind(&plist, 2);
	//struct SLNode* pos4 = SListFind(&plist, 3);
	//struct SLNode* pos5 = SListFind(&plist, 4);
	//struct SLNode* pos6 = SListFind(&plist, 5);
	//SListErase(&plist, pos1);
	//SListErase(&plist, pos2);
	////SListErase(&plist, pos3);
	//SListErase(&plist, pos4);
	//SListErase(&plist, pos5);
	//SListErase(&plist, pos6);

	//SListPopFront(&plist);
	//SListPopFront(&plist);
	//SListPopFront(&plist);
	//SListPopFront(&plist);
	//SListPopFront(&plist);
	//SListPopFront(&plist);
	//SListPopFront(&plist);
	/*SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);*/
	int isempty = IsEmpty(plist);
	PrintSList(plist);
	printf("%d %d\n", length, isempty);

	return 0;
}